Skip to main content
GET
/
search
[BETA] Unified semantic search
curl --request GET \
  --url https://api.getpg.ai/public-api/v1/search \
  --header 'x-api-key: <api-key>'
{}

Documentation Index

Fetch the complete documentation index at: https://docs.getpg.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Your API key for authentication. Get your API key from the PG:AI dashboard under Settings > API Keys.

Query Parameters

scope
enum<string>
required

Search scope: organisation (all tracked accounts for the org) or companies (explicit company_ids).

Available options:
organisation,
companies
q
string
required

Search query (minimum 1 character).

company_ids
string

Required when scope=companies: comma-separated company UUIDs.

page
integer
default:1

Page index for the response envelope.

per_source
integer
default:25

Page size. Default 25, maximum 50 on all list endpoints. Omit to use the default; increase up to 50 only if you need larger pages. Applied per vector source.

date_from
string

ISO 8601 lower bound on result date.

date_to
string

ISO 8601 upper bound on result date.

Response

Success — { items, total, page, per_page } (and optionally resolved_company_count for organisation scope)

Response data